package My.example.tes;

import My.example.config.springconfig;
import My.example.dao.mydao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;

public class te1 {
    //打印datasource信息
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(springconfig.class);
        DataSource dataSource = context.getBean(DataSource.class);

        System.out.println(dataSource);

    }
}
